import {post,get} from '../../utils/request'
// 部门接口封装

// 部门列表接口
const departmentList=(params:any)=>{
    return get('api/visit/department/list',params)
}
// 删除部门（支持单删、批删）
const departmentDel=(params:any)=>{
  return get('api/visit/department/del',params)
}
// 根据id查询单条部门记录
const departmentShow=(params:any)=>{
  return get('api/visit/department/show',params)
}

// 添加部门接口
const departmentAdd=(data:any)=>{
  return post('api/visit/department/add',data)
}

// 修改部门接口
const departmentEdit=(data:any)=>{
  return post('api/visit/department/edit',data)
}

export { departmentList,departmentDel,departmentShow,departmentAdd,departmentEdit}